# -*- coding: utf-8 -*-
import json
import time

from flask import Blueprint, request
import pymysql

from apps import result
from apps.logics import Question
from apps.views import api_decorator

bp = Blueprint('questions', __name__, url_prefix='/questions')

o = Question()


@bp.route('/show', methods=['POST'])
@api_decorator
def show():
    data = o.show()
    return result.from_data(data)
